package stepCostFunctions;

import domain.PacmanAction;
import aima.core.agent.Action;
import aima.core.search.framework.StepCostFunction;
import aima.core.util.datastructure.XYLocation;

public class EStepCostFunction implements StepCostFunction {

	@Override
	public double c(Object s, Action a, Object sDelta) {
		PacmanAction action = (PacmanAction) a;
		XYLocation futureLocation = action.getLocation();
		int x = futureLocation.getXCoOrdinate();
		return Math.pow(0.5, x);
	}

}
